package com.ss.android.common.dialog;

import android.view.View;
import android.widget.AdapterView;

final class g implements AdapterView.OnItemClickListener {
    private final AlertController.AlertParams b;
    private final AlertController a;

    g(AlertController.AlertParams arg1, AlertController arg2) {
        this.b = arg1;
        this.a = arg2;

    }

    public final void onItemClick(AdapterView arg3, View arg4, int arg5, long arg6) {
        this.b.mOnItemSelectedListener.onClick(this.a.mDialogInterface, arg5);
        if(!this.b.mIsSingleChoice) {
            this.a.mDialogInterface.dismiss();
        }
    }
}

